package dp;

public abstract class TemplateClass {

	public int templateMethod() {
		int a = operation1();
		int somme = 0;
		for (int i = 0; i < a; i++) {
			int b = operation2(); 
			somme += b;
		}
		return somme;
	}

	public abstract int operation1();
	
	public abstract int operation2();
}
